			<!-- left column start -->
			<div class="left-column">
				<div class="title">
					<ul class="top-nav">
						<li class="first">
							<div class="box">
								<div class="sub">
									<a href="#">Главная</a>
								</div>
							</div>
							<div class="bg-right">&nbsp;</div>
						</li>
						<li>
							<div class="box">
								<div class="sub">
									<a href="#">Места</a>
								</div>
							</div>
							<div class="bg-right">&nbsp;</div>
						</li>
						<li class="last">
							<div class="box">
								<div class="sub">
									<strong>Добавления места</strong>
								</div>
							</div>
							<div class="bg-right">&nbsp;</div>
						</li>
					</ul>
					<span><a href="#">Добавить место</a></span>
				</div>
				<div class="form-h">
					<div class="form-i">
						<div class="box-form">
							<form id="placeForm" action="<?=$this->form->getAction()?>" method="<?=$this->form->getMethod()?>" enctype="application/x-www-form-urlencoded">
								<dl class="zend_form">
									<dt>
										<label class="required" for="edit_add1">Название места:</label>
										<span id="id" style="display :none"><?=$this->id?></span>
									</dt>
									<dd>
										<?=$this->form->getElement('name')?>
										<div class="error">
											<div class="t">&nbsp;</div>
											<div class="c">
												<span>Укажите, пожалуйста, максимально точное название места</span>
											</div>
											<div class="b">&nbsp;</div>
										</div>
									</dd>
									<dt class="none"></dt>
									<dd id="error_categoryName"/>
									<dt><label class="required">Раздел и подраздел в каталоге мест:</label></dt>
									<a href='#' class="plus">plus</a>
									<dd class="category">
									<?php $i=1; foreach($this->categorys as $category):?>
									<?php $category = new Model_Category($category['id']); 
										  $currentParent = $category->getParent();
										  $parent = new Model_Category($currentParent->id);
										  $childs = $parent->getChildren();
									?>
								
									<?php if($i==2):?>
									<?php //@todo тут фигню написал вёрстка слетела в add.phtml таже фигня?>
									<div id="nextCategory">
									<?php endif;?>
									<div class="left">
										<select id="parent_category<?=$i?>" class="sel-f parent" name="parent_category<?=$i?>">
											<?php foreach($this->parents as $parent):?>
												<?php if($currentParent->id == $parent->id){
													$selected = "SELECTED";
												} else {
													$selected = "";
												} 
												?>
												<option label="<?=$parent->name?>" <?=$selected?> value="<?=$parent->id?>"><?=$parent->name?></option>
											<?php endforeach;?>
										</select>
									</div>
									<div class="right">
										<select id="child_category<?=$i?>" class="sel-f" name="child_category<?=$i?>">
											<?php foreach ($childs as $child):?>
											<?php if($category->getRow()->id == $child->id){
												$selected = "selected";
											} else {
												$selected = '';
											}?>
												<option  label="<?=$child->name?>"  value="<?=$child->id?>" <?=$selected?>><?=$child->name?></option>
											<?php endforeach;?>
										</select>
										
									</div>
										<?php $i++; endforeach;?>
									<?php if(count($this->categorys)>1):?>
										</div>
									<?php endif;?>
									</dd>
									
									<dt class="none">&nbsp;</dt>
									<dd>
										<div class="address">
											<div class="image">
												<div class="t">
													<div class="b  main imageUploadMain">
													<?php 
														$album = new ZloY_Album_Place($this->place->id);
														if($album->getMainImage('s')):
													?>
														<img  alt="<?=$this->place->name?>" src="<?=$album->getMainImage('s')?>">
													<?php else:?>
														<a href="#">Загрузить фото</a>
													<?php endif;?>
													</div>
												</div>
											</div>
											<div class="address-i">
												<label class="required" for="edit_add2">Адрес:</label>
												<?=$this->form->getElement('address')?>
												<!--<span>Это место находится в ТРЦ «Макси»?</span>
												<input type="image" class="button-y" src="images/btn-yes.gif" alt="" />
												<input type="image" class="button-y" src="images/btn-no.gif" alt="" />
											-->
											</div>
										</div>
									</dd>
								</dl>
								<dl class="zend_form-i">
									<dt>
										<label class="required" for="edit_add3">Режим работы:</label>
									</dt>
									<dd>
										<?=$this->form->getElement('work')?>
									</dd>
									<dt>
										<label class="required" for="edit_add4">Телефоны:</label>
									</dt>
									<dd>
										<?=$this->form->getElement('phone')?>
									</dd>
									<dt>
										<label class="required" for="edit_add5">e-mail:</label>
									</dt>
									<dd>
										<?=$this->form->getElement('mail')?>
									</dd>
									<dt>
										<label class="required" for="edit_add6">Сайт:</label>
									</dt>
									<dd>
										<?=$this->form->getElement('site')?>
									</dd>
									<dt>
										<label class="required">Описание:</label>
									</dt>
									<dd>
										<?=$this->form->getElement('about')?>
									</dd>
								</dl>
								<div class="foto-a">
									<div class="title">
										<h2>Фотоальбом</h2>
									</div>
									<div class="gallery">
										<div class="image">
											<div class="t">
												<div class="b">
													<a href="#" class='uploadImage'>Загрузить фото</a>
												</div>
											</div>
										</div>
										<div class="imagesList">
										<?php $images = $album->getImages('s');
										if(count($images)):
											foreach($images as $image):
										?>
											<div class="image">
												<div class="t">
													<div class="b">
													
														<img src="<?=$image?>">
													</div>
												</div>
											</div>
											<?php endforeach;?>
										<?php endif;?>
										</div>
									</div>
									<?=$this->form->getElement('submit')?>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
			<!-- left column end -->
<script type="text/javascript" src="/js/ocupload.js"></script>
